import React, { Component } from 'react'

export default class Dialog extends Component {
  render () {
    return (
      <div>
        {/* 标题具名插槽 */}
        <div style={{ textAlign: 'center' }}>{this.props.title}</div>
        {this.props.children}
        {/* 底部具名插槽 */}
        <div style={{ textAlign: 'right' }}>{this.props.footer}</div>
      </div>
    )
  }
}
